package com.cj.gateway.service;

import com.cj.common.response.Result;
import com.cj.gateway.service.impl.LoginFeignFallbackFactory;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/5/25 18:03
 */
@FeignClient(value = "user", fallbackFactory = LoginFeignFallbackFactory.class)
public interface LoginFeignService {

    @RequestMapping(value = "/sys/login", method = RequestMethod.POST)
    Result login(@RequestBody Map<String, Object> map);

    @RequestMapping(value = "/sys/logout", method = RequestMethod.POST)
    Result logout();

}
